package life;


import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char[] chars = sc.next().toCharArray();
        Arrays.sort(chars);
        Map map = new HashMap<Character, Integer>();
        for (int i = 0; i < chars.length; i++) {
            if (!map.containsKey(chars[i])) {
                map.put(chars[i], 1);
            } else {
                map.put(chars[i], (int) map.get(chars[i]) + 1);
            }
        }
        Object[] temp = map.values().stream().toArray();
        Integer[] values = new Integer[temp.length];
        for (int i = 0; i < temp.length; i++) {
            values[i] = (Integer) temp[i];
        }
        Object[] t = map.keySet().stream().toArray();
        Character[] keys = new Character[t.length];
        for (int i = 0; i < t.length; i++) {
            keys[i] = (Character) t[i];
        }
        for (int i = 0; i < map.size(); i++) {
            System.out.printf("%c:%d\n", keys[i], values[i]);
        }
    }


}



